package com.haust.su.ghyy.hospital.service;

import com.haust.su.ghyy.model.hosp.Department;
import com.haust.su.ghyy.vo.hosp.DepartmentQueryVo;
import com.haust.su.ghyy.vo.hosp.DepartmentVo;
import org.springframework.data.domain.Page;

import java.util.List;
import java.util.Map;

/**
 * @author haustsusu
 * @create 2023-04-27-10:42
 */
public interface DepartmentService {
    //签名成功后调用service方法
    void save(Map<String, Object> parammap);

    //查询科室接口
    Page<Department> findPageDepartment(int page, int limit, DepartmentQueryVo departmentQueryVo);

    //删除科室接口
    void remove(String hoscode, String depcode);

    // //根据医院的编号,查询医院的所有科室列表
    List<DepartmentVo> findDeptTree(String hoscode);

    //根据医院编号,科室编号,查询科室的名称
    String getDeptName(String hoscode, String depcode);

    //根据医院编号,科室编号,查询科室的对象
    Department getDepartment(String hoscode, String depcode);

    //
    String getDepName(String hoscode, String depcode);
}
